home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / autocomplete / nsIAutoCompleteSearch.h < prev   
Encoding:
C/C++ Source or Header  |  2006-05-08  |  6.0 KB  |  177 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAutoCompleteSearch.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAutoCompleteSearch_h__
  6. #define __gen_nsIAutoCompleteSearch_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIAutoCompleteResult; /* forward declaration */
  18.  
  19. class nsIAutoCompleteObserver; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIAutoCompleteSearch */
  23. #define NS_IAUTOCOMPLETESEARCH_IID_STR "de8db85f-c1de-4d87-94ba-7844890f91fe"
  24.  
  25. #define NS_IAUTOCOMPLETESEARCH_IID \
  26.   {0xde8db85f, 0xc1de, 0x4d87, \
  27.     { 0x94, 0xba, 0x78, 0x44, 0x89, 0x0f, 0x91, 0xfe }}
  28.  
  29. class NS_NO_VTABLE nsIAutoCompleteSearch : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETESEARCH_IID)
  33.  
  34.   /* void startSearch (in AString searchString, in AString searchParam, in nsIAutoCompleteResult previousResult, in nsIAutoCompleteObserver listener); */
  35.   NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) = 0;
  36.  
  37.   /* void stopSearch (); */
  38.   NS_IMETHOD StopSearch(void) = 0;
  39.  
  40. };
  41.  
  42. /* Use this macro when declaring classes that implement this interface. */
  43. #define NS_DECL_NSIAUTOCOMPLETESEARCH \
  44.   NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener); \
  45.   NS_IMETHOD StopSearch(void); 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  48. #define NS_FORWARD_NSIAUTOCOMPLETESEARCH(_to) \
  49.   NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) { return _to StartSearch(searchString, searchParam, previousResult, listener); } \
  50.   NS_IMETHOD StopSearch(void) { return _to StopSearch(); } 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  53. #define NS_FORWARD_SAFE_NSIAUTOCOMPLETESEARCH(_to) \
  54.   NS_IMETHOD StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartSearch(searchString, searchParam, previousResult, listener); } \
  55.   NS_IMETHOD StopSearch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopSearch(); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class nsAutoCompleteSearch : public nsIAutoCompleteSearch
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSIAUTOCOMPLETESEARCH
  66.  
  67.   nsAutoCompleteSearch();
  68.  
  69. private:
  70.   ~nsAutoCompleteSearch();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsAutoCompleteSearch, nsIAutoCompleteSearch)
  78.  
  79. nsAutoCompleteSearch::nsAutoCompleteSearch()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. nsAutoCompleteSearch::~nsAutoCompleteSearch()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* void startSearch (in AString searchString, in AString searchParam, in nsIAutoCompleteResult previousResult, in nsIAutoCompleteObserver listener); */
  90. NS_IMETHODIMP nsAutoCompleteSearch::StartSearch(const nsAString & searchString, const nsAString & searchParam, nsIAutoCompleteResult *previousResult, nsIAutoCompleteObserver *listener)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* void stopSearch (); */
  96. NS_IMETHODIMP nsAutoCompleteSearch::StopSearch()
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* End of implementation class template. */
  102. #endif
  103.  
  104.  
  105. /* starting interface:    nsIAutoCompleteObserver */
  106. #define NS_IAUTOCOMPLETEOBSERVER_IID_STR "18c36504-9a4c-4ac3-8494-bd05e00ae27f"
  107.  
  108. #define NS_IAUTOCOMPLETEOBSERVER_IID \
  109.   {0x18c36504, 0x9a4c, 0x4ac3, \
  110.     { 0x84, 0x94, 0xbd, 0x05, 0xe0, 0x0a, 0xe2, 0x7f }}
  111.  
  112. class NS_NO_VTABLE nsIAutoCompleteObserver : public nsISupports {
  113.  public: 
  114.  
  115.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETEOBSERVER_IID)
  116.  
  117.   /* void onSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
  118.   NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) = 0;
  119.  
  120. };
  121.  
  122. /* Use this macro when declaring classes that implement this interface. */
  123. #define NS_DECL_NSIAUTOCOMPLETEOBSERVER \
  124.   NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result); 
  125.  
  126. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  127. #define NS_FORWARD_NSIAUTOCOMPLETEOBSERVER(_to) \
  128.   NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) { return _to OnSearchResult(search, result); } 
  129.  
  130. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  131. #define NS_FORWARD_SAFE_NSIAUTOCOMPLETEOBSERVER(_to) \
  132.   NS_IMETHOD OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSearchResult(search, result); } 
  133.  
  134. #if 0
  135. /* Use the code below as a template for the implementation class for this interface. */
  136.  
  137. /* Header file */
  138. class nsAutoCompleteObserver : public nsIAutoCompleteObserver
  139. {
  140. public:
  141.   NS_DECL_ISUPPORTS
  142.   NS_DECL_NSIAUTOCOMPLETEOBSERVER
  143.  
  144.   nsAutoCompleteObserver();
  145.  
  146. private:
  147.   ~nsAutoCompleteObserver();
  148.  
  149. protected:
  150.   /* additional members */
  151. };
  152.  
  153. /* Implementation file */
  154. NS_IMPL_ISUPPORTS1(nsAutoCompleteObserver, nsIAutoCompleteObserver)
  155.  
  156. nsAutoCompleteObserver::nsAutoCompleteObserver()
  157. {
  158.   /* member initializers and constructor code */
  159. }
  160.  
  161. nsAutoCompleteObserver::~nsAutoCompleteObserver()
  162. {
  163.   /* destructor code */
  164. }
  165.  
  166. /* void onSearchResult (in nsIAutoCompleteSearch search, in nsIAutoCompleteResult result); */
  167. NS_IMETHODIMP nsAutoCompleteObserver::OnSearchResult(nsIAutoCompleteSearch *search, nsIAutoCompleteResult *result)
  168. {
  169.     return NS_ERROR_NOT_IMPLEMENTED;
  170. }
  171.  
  172. /* End of implementation class template. */
  173. #endif
  174.  
  175.  
  176. #endif /* __gen_nsIAutoCompleteSearch_h__ */
  177.